package myNewProject.utils;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
public class CustomResult {
    private String title;
    private String url;
    private String createdAt;
    private String updatedAt;

    @Override
    public String toString() {
        return "标题：" + title + '\n' +
               "链接：" + url + '\n' +
               "发帖时间:" + createdAt + "\t最后回帖时间：" + updatedAt + '\n';
    }
}
